package com.platform.hjt.sys.model;

import javax.persistence.Column;
import javax.persistence.Embeddable;

/**
 * SysUserModelId entity. @author MyEclipse Persistence Tools
 */
@Embeddable
public class SysUserModelId implements java.io.Serializable {

	// Fields

	/**
	 * 
	 */
	private static final long serialVersionUID = 7801644693812958525L;
	private String sysModelId;
	private String sysUserInfoId;

	// Constructors

	/** default constructor */
	public SysUserModelId() {
	}

	/** full constructor */
	public SysUserModelId(String sysModelId, String sysUserInfoId) {
		this.sysModelId = sysModelId;
		this.sysUserInfoId = sysUserInfoId;
	}

	// Property accessors

	@Column(name = "sys_model_id", nullable = false, length = 32)
	public String getSysModelId() {
		return this.sysModelId;
	}

	public void setSysModelId(String sysModelId) {
		this.sysModelId = sysModelId;
	}

	@Column(name = "sys_user_info_id", nullable = false, length = 32)
	public String getSysUserInfoId() {
		return this.sysUserInfoId;
	}

	public void setSysUserInfoId(String sysUserInfoId) {
		this.sysUserInfoId = sysUserInfoId;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof SysUserModelId))
			return false;
		SysUserModelId castOther = (SysUserModelId) other;

		return ((this.getSysModelId() == castOther.getSysModelId()) || (this
				.getSysModelId() != null && castOther.getSysModelId() != null && this
				.getSysModelId().equals(castOther.getSysModelId())))
				&& ((this.getSysUserInfoId() == castOther.getSysUserInfoId()) || (this
						.getSysUserInfoId() != null
						&& castOther.getSysUserInfoId() != null && this
						.getSysUserInfoId()
						.equals(castOther.getSysUserInfoId())));
	}

	public int hashCode() {
		int result = 17;

		result = 37
				* result
				+ (getSysModelId() == null ? 0 : this.getSysModelId()
						.hashCode());
		result = 37
				* result
				+ (getSysUserInfoId() == null ? 0 : this.getSysUserInfoId()
						.hashCode());
		return result;
	}

}